
package com.google.api.ads.adwords.jaxws.v201206.cm;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for AdGroupServiceError.Reason.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="AdGroupServiceError.Reason">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="DUPLICATE_ADGROUP_NAME"/>
 *     &lt;enumeration value="INVALID_ADGROUP_ID"/>
 *     &lt;enumeration value="INVALID_ADGROUP_NAME"/>
 *     &lt;enumeration value="USE_SET_OPERATOR_AND_MARK_STATUS_TO_DELETED"/>
 *     &lt;enumeration value="ADVERTISER_NOT_ON_CONTENT_NETWORK"/>
 *     &lt;enumeration value="BID_TOO_BIG"/>
 *     &lt;enumeration value="BID_TOO_SMALL"/>
 *     &lt;enumeration value="BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH"/>
 *     &lt;enumeration value="INVALID_BID"/>
 *     &lt;enumeration value="MISSING_ADGROUP_NAME"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "AdGroupServiceError.Reason")
@XmlEnum
public enum AdGroupServiceErrorReason {


    /**
     * 
     *                 AdGroup with the same name already exists for the campaign.
     *               
     * 
     */
    DUPLICATE_ADGROUP_NAME,

    /**
     * 
     *                 AdGroup Id is not valid.
     *               
     * 
     */
    INVALID_ADGROUP_ID,

    /**
     * 
     *                 AdGroup name is not valid.
     *               
     * 
     */
    INVALID_ADGROUP_NAME,

    /**
     * 
     *                 Cannot delete an adgroup, adgroup status can be marked deleted
     *                 using set operator.
     *               
     * 
     */
    USE_SET_OPERATOR_AND_MARK_STATUS_TO_DELETED,

    /**
     * 
     *                 Advertiser is not allowed to target sites or set site bids that are
     *                 not on the Google Search Network.
     *               
     * 
     */
    ADVERTISER_NOT_ON_CONTENT_NETWORK,

    /**
     * 
     *                 Bid amount is too big.
     *               
     * 
     */
    BID_TOO_BIG,

    /**
     * 
     *                 Bid amount is too small.
     *               
     * 
     */
    BID_TOO_SMALL,

    /**
     * 
     *                 AdGroup bid does not match the campaign's bidding strategy.
     *               
     * 
     */
    BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH,

    /**
     * 
     *                 Invalid bid amoumt.
     *               
     * 
     */
    INVALID_BID,

    /**
     * 
     *                 AdGroup name is required for Add.
     *               
     * 
     */
    MISSING_ADGROUP_NAME;

    public String value() {
        return name();
    }

    public static AdGroupServiceErrorReason fromValue(String v) {
        return valueOf(v);
    }

}
